export interface RouteItem {
  menuname: Array<string>;
  asdefault?: boolean; // 默认显示
  path?: string;
  type?: boolean;
  component?: string | (() => any);
  isTabMenu?: boolean;
  tabTitle?: string;
}

export type RoutesConfig = RouteItem[];
const config: RoutesConfig = [
  // 订单中心 - 订单列表
  {
    menuname: ['订单中心', '订单列表'],
    asdefault: true,
    path: '/order/list',
    component: '../pages/order/list/index.tsx',
  },
  {
    menuname: ['订单中心', '订单列表'],
    asdefault: true,
    tabTitle: '新增订单',
    type: true,
    path: '/order/add',
    component: '../pages/order/add/index.tsx',
  },
  {
    menuname: ['订单中心', '订单列表'],
    asdefault: true,
    tabTitle: '订单详情',
    type: true,
    path: '/order/details',
    component: '../pages/order/orderDetails/index.tsx',
  },
  {
    menuname: ['订单中心', '订单列表'],
    asdefault: true,
    tabTitle: '订单详情',
    type: true,
    path: '/order/detail',
    component: '../pages/order/orderDetails/index.tsx',
  },
  {
    menuname: ['订单中心', '订单列表'],
    asdefault: true,
    tabTitle: '绑车',
    type: true,
    path: '/order/bindCar',
    component: '../pages/order/orderDetails/otherIndex.tsx',
  },
  {
    menuname: ['订单中心', '订单列表'],
    asdefault: false,
    tabTitle: '验车',
    type: true,
    path: '/order/checkCar',
    component: '../pages/order/orderDetails/otherIndex.tsx',
  },
  {
    menuname: ['订单中心', '订单列表'],
    asdefault: false,
    tabTitle: '签约',
    type: true,
    path: '/order/signing',
    component: '../pages/order/orderDetails/otherIndex.tsx',
  },
  {
    menuname: ['订单中心', '订单列表'],
    asdefault: false,
    tabTitle: '交车',
    type: true,
    path: '/order/deliveryCar',
    component: '../pages/order/orderDetails/otherIndex.tsx',
  },
  {
    menuname: ['订单中心', '订单列表'],
    asdefault: false,
    tabTitle: '申请费用减免',
    type: true,
    path: '/order/derateOrder',
    component: '../pages/order/orderDetails/derateOrder.tsx',
  },
  {
    menuname: ['订单中心', '订单列表'],
    asdefault: false,
    tabTitle: '申请过户',
    type: true,
    path: '/order/transferOfNames',
    component: '../pages/order/orderDetails/otherIndex.tsx',
  },
  {
    menuname: ['订单中心', '订单列表'],
    asdefault: false,
    tabTitle: '续租',
    type: true,
    path: '/order/renewal',
    component: '../pages/order/list/renewalOrder.tsx',
  },
  {
    menuname: ['订单中心', '订单列表'],
    asdefault: false,
    tabTitle: '申请换车',
    type: true,
    path: '/order/exchangeCar',
    component: '../pages/order/orderDetails/otherIndex.tsx',
  },
  {
    menuname: ['订单中心', '订单列表'],
    asdefault: false,
    tabTitle: '退车',
    type: true,
    path: '/order/returnCar',
    component: '../pages/order/orderDetails/otherIndex.tsx',
  },
  {
    menuname: ['订单中心', '订单列表'],
    asdefault: false,
    tabTitle: '退车验车',
    type: true,
    path: '/order/returnCheckCar',
    component: '../pages/order/orderDetails/otherIndex.tsx',
  },
  {
    menuname: ['订单中心', '订单列表'],
    asdefault: false,
    tabTitle: '过户信息填写',
    type: true,
    path: '/order/returnCheckCarInfo',
    component: '../pages/order/orderDetails/otherIndex.tsx',
  },
];

export default config;
